home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1031 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.1 KB

  1. From: Torsten Scherer <itschere@techfak.uni-bielefeld.de>
  2. Subject: MiNT 1.10 biosfs select() patch
  3. Date: Thu, 17 Feb 94 23:13:30 +0100
  4.  
  5.  Ok, forget what I was telling some hours ago. The chunks came from the vcon
  6. daemon from Juergen Lock. Without the vcons, it doesn't work at all!
  7. Looks like you can still read characters from /dev/console, but select
  8. doesn't work any longer. When tracking this down, I found this:
  9.  
  10. diff -u3 orig/biosfs.c ./biosfs.c
  11. --- orig/biosfs.c    Thu Feb 17 16:55:00 1994
  12. +++ ./biosfs.c    Thu Feb 17 23:04:10 1994
  13. @@ -1542,7 +1542,7 @@
  14.          }
  15.          if (tty) {
  16.          /* avoid collisions with other processes */
  17. -            if (!tty->rsel)
  18. +            if (tty->rsel)
  19.                  return 2;    /* collision */
  20.              tty->rsel = p;
  21.          }
  22. @@ -1553,7 +1553,7 @@
  23.              return 1;
  24.          }
  25.          if (tty) {
  26. -            if (!tty->wsel)
  27. +            if (tty->wsel)
  28.                  return 2;    /* collision */
  29.              tty->wsel = p;
  30.          }
  31.  
  32.  Since the selecting process is initialized to zero, a collision was always
  33. reported and the calling process wasn't set to be selecting it. Therefore it
  34. wouldn't be waken up when a key was pressed.
  35.  
  36.  Now it's a bit better... :-)
  37.  
  38. TeSche,
  39. Torsten Scherer, itschere@techfak.uni-bielefeld.de
  40.